package com.cd.javacxy.module.web.service;

import com.cd.javacxy.common.model.query.MessageParams;
import com.cd.javacxy.common.model.query.MessageQuery;
import com.cd.javacxy.common.model.vo.MessageVo;
import com.cd.javacxy.common.utils.PageResult;

/**
 * CxyMessage的服务接口
 *
 * @author
 */
public interface CxyMessageService {


    /**
     * 分页查询消息列表
     *
     * @param messageQuery 消息查询对象
     * @return PageResult<MessageVo>
     */
    PageResult<MessageVo> findMessageByPage(MessageQuery messageQuery);

    int findMessageCount(MessageQuery messageQuery);

    void delMessage(Integer userId, Integer[] ids);

    MessageVo getMessageById(Integer id, Integer userId);

    int update(Integer[] integers, Integer userId);

    void createMessage(MessageParams messageParams);

}
